﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StockFinder.Model;

namespace StockFinder.Services.Extractors
{
    public interface IHistoricPricesExtractor
    {
        bool LoadHistoricPrices(DateTime fromDate, DateTime toDate, string symbolName, List<DailyPrice> dailyPricesTransporter);

        HistoricPricesExtract ExtractHistoricPrices(DateTime fromDate, DateTime toDate, string symbol);
        /// <summary>
        /// Gets prices from last year  
        /// </summary>
        /// <param name="symbol"></param>
        /// <returns></returns>
        HistoricPricesExtract GetHistoricPrices(string symbol);

        List<DailyPrice> GetHistoricPrices(DateTime fromDate, DateTime toDate, string symbolName);
    }
}
